package com.steven.design.JieGou_Pattern.zuhe;

public abstract class Component {

    //职位
    private String zhiWei;
    //工作
    private String job;


     Component(String zhiWei,String job){
         this.job=job;
         this.zhiWei=zhiWei;
    }
     void work(){
        System.out.println("我是:"+zhiWei+",我在："+job);
    }

    //检查工作
     abstract void check();
}
